package com.spring.demo.untils.document;

import lombok.Data;

import java.util.function.Function;

/**
 * @author xuweizhi
 * @since 2023/04/26 13:59
 */
@Data
public class JsonModel<T> {

    private T data;


    public <JsonModel, R> R getRelationValue(Function<JsonModel, R> function, JsonModel jsonModel) {
        return function.apply(jsonModel);
    }

}
